@import url('./variable.less');
@import url('./minix.less');
@import url('./iconfont.less');
html {
  font-size: @default-font-size;

}
html,body{
  display: -webkit-box;
  display: -moz-box;
  height:100%;
}
* {
  padding: 0;
  margin: 0;
  border:0;
  box-sizing: border-box;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}
ul li {
  list-style-type:none;
}
*:focus {
  outline: none;
}
body{
  font-family:"Times New Roman", Times, serif;
  -webkit-box-flex: 1;
  -moz-box-flex: 1;
  -moz-box-align: stretch;
  -webkit-box-align: stretch;
}
#app {
  width: 100%;
}
.container {
  width: 100%;
  -webkit-box-flex: 1;
  -moz-box-flex: 1;
  -moz-box-align: stretch;
  -webkit-box-align: stretch;
  &.fluid {
    padding: 12px / @default-font-size * 1rem;
  }
}
.login-box {
  position: absolute;
  top:0;
  left:0;
  bottom: 0;
  right:0;
  width:80%;
  height:240px / @default-font-size * 1rem;
  margin:auto;
}
.form-row {
  display: -moz-flex;
  display: -webkit-flex;
  margin: 0 auto;
  padding: 4px /@default-font-size * 1rem;
  label {
    width: 64px / @default-font-size * 1rem;
    display: inline-block;
    text-align: right;
    padding: 0 4px/@default-font-size * 1rem;
  }
  .form-input {
    -moz-flex: 1;
    -webkit-flex: 1;
    border: 1px/@default-font-size*1rem solid @color-gray;
    padding: 4px/@default-font-size*1rem 4px/@default-font-size*1rem;
  }
}

.btn {
  display: block;
  width:100%;
  text-align: center;
  padding: 8px/@default-font-size*1rem 0;
  .background('default');
  &.info {
    .background('info');
  }
  &.warning {
    .background('warning');
  }
  &.success {
    .background('success');
  }
  &.danger {
    .background('danger');
  }
}
.header {
  display: block;
  width: 100%;
  font-size:0;
  height: 45px /@default-font-size*1rem;
  line-height: 45px/@default-font-size * 1rem;
  text-align: center;
  &.info {
    .background('info');
  }
  &.warning {
    .background('warning');
  }
  &.success {
    .background('success');
  }
  &.danger {
    .background('danger');
  }
  .left {
    padding: 0 12px/@default-font-size*1rem;
    width: 33.333333%;
    display: inline-block;
    font-size:initial;
    text-align: left;
  }
  .title {
    font-weight: bold;
    width: 33.333333%;
    margin: 0 auto;
    font-size:initial;
    display: inline-block;
    text-align: center;
  }
  .right {
    padding: 0 12px/@default-font-size*1rem;
    width: 33.333333%;
    font-size:initial;
    display: inline-block;
    text-align: right;
  }
}
.media-box {
  width: 100%;
  display: -webkit-flex;
  img {
    width:85px/@default-font-size * 1rem;
    height: 85px/@default-font-size * 1rem;
    border-radius: 85px/@default-font-size * 1rem;
  }
  .media-content {
    flex: 1;
    display: -webkit-flex;
    flex-direction: column;
    padding:12px/@default-font-size*1rem;
    .title {
      font-weight: 500;
    }
    .content {
      flex:1;
      color:#AAA;
    }
  }
}
.list {
  width: 100%;
  margin:8px /@default-font-size * 1rem 0;
  .list-item {
    padding: 12px /@default-font-size * 1rem;
    position: relative;
    border-style:solid;
    border-width: 0 0 1px 0;
    border-color: #CCCCCC;
    &.media-box {
      img {
        width:48px/@default-font-size * 1rem;
        height: 48px/@default-font-size * 1rem;
        border-radius: 48px/@default-font-size * 1rem;
      }
    }
    .list-item-title {
      display: inline-block;
      position: relative;
      .font-size('h3');
      &.icon-right:after {
        font-family:"iconfont" !important;
        content: "\e62d";
        right: 12px/@default-font-size*1rem;
        position:absolute;
        color:#CCC;
      }
    }
    .list-item-info {
      display: inline-block;
      float: right;
      color:#9a9595;
      .font-size('h5');
      &.icon-right:after {
        font-family:"iconfont" !important;
        content: "\e62d";
        right: 12px/@default-font-size*1rem;
        color:#CCC;
      }
    }
    &:after{
      clear: both;
    }
    &:hover {
      background: #CECECE;
    }
  }

}
footer {
  width: 100%;
  display: block;
  position: fixed;
  bottom: 0;
  left: 0;
}
.footer {
  width: 100%;
  display: -moz-flex;
  display: -webkit-flex;
  .item {
    -webkit-flex: 1;
    -moz-flex: 1;
    text-align: center;
    height: 64px/@default-font-size*1rem;
    padding: 4px/@default-font-size*1rem;
    .color('default');
    .iconfont{
      display: block;
    }
    &.selected {
      .color('success')
    }
  }
}

.sendbox {
  width: 100%;
  position: fixed;
  bottom: 0;
  left: 0;
  display: flex;
}
.sendbox input {
  flex: 1;
  height: 2rem;
  border-radius: .4rem;
  border-style: solid;
  border-width: .125rem;
  margin: .375rem .875rem;
}
.sendbox .btn {
  width: 4rem;
}
.message-box {
  display: flex;
  padding:8px;
  .message-header {
    width:42px;
    height:42px;
    img {
      width:100%;
      height:auto;
    }
  }
  .message-content{
    margin:0 8px;
    border-radius:4px;
    border-width:0;
    background: #6bd942;
    padding:4px;
  }
}
.messbox {
  width:100%;
  height:64px;
  display: flex;
  line-height: 64px;
  padding:4px;
  border-style: solid;
  border-width: 0 0 1px 0;
  border-color: #CCCCCC;
  .avatar {
    overflow-y: hidden;
    width: 64px;
    height:64px;
    img{
      width:100%;
      height:auto;
    }
  }
}
